<%@ page pageEncoding="utf-8"%> 
<%@page import="com.course.db.*"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>

<%
	request.setAttribute("page_title","温岭选课系统-课程评分");
	CourseBasic course = (CourseBasic)session.getAttribute("Course");

	List<Hashtable<String, String>> student_list = (List<Hashtable<String, String>>) session.getAttribute("GradeStudentList");
	Iterator<Hashtable<String, String>> student_it = student_list.iterator();
	System.out.println("size:"+student_list.size());
%>

<style>
	table{
		margin:0;
		padding:0;
		border-collapse:collapse;
		border:0;
		cellpadding:0;
		cellspacing:0; 
		width:100%;
		//height:100%;
	}
	
	td{
		text-align:center;
		vertical-align:middle;
		line-height:30px;
		font-size:13px;
		border-collapse:collapse;
		border:1px solid black;
		margin:0;
		padding:0;
		
	}

	.tdLeft{
		align:left;
		text-align:left;
		padding-left:20px;
		
	}
</style>

<div style="width:100%; text-align:center;">
 	<p style="border:0;font-size:14px;padding-bottom:0;">
 		 <b>课程《<%=course.getName() %>》评分</b>
	</p>
	<form action="../Teacher/gradeasure.do" method="post">
  	<table width="90%"  style="border:1px solid gray;margin-left:0%;" >
      <tbody>
      	<tr height="32" bgcolor="#f0f0f0">
		   	<td align="center" width="7%">学号</td>
			<td align="center" width="7%">姓名</td>
			<td align="center" width="7%">班级</td>
			<td align="center" width="7%">分数</td>
		   	<td align="center" width="7%">学号</td>
			<td align="center" width="7%">姓名</td>
			<td align="center" width="7%">班级</td>
			<td align="center" width="7%">分数</td>
		   	<td align="center" width="7%">学号</td>
			<td align="center" width="7%">姓名</td>
			<td align="center" width="7%">班级</td>
			<td align="center" width="7%">分数</td>
		 </tr>
      	 <%
			student_it = student_list.iterator();
			while(student_it.hasNext())
			{
		%>
		<tr height="32" bgcolor="#ffffff">
		 <%
			for(int i=0; i<3; i++)
			{
				if(student_it.hasNext()){
				Hashtable<String, String> studentlist_hash  = student_it.next();
		%>
			    <td align="center"><%=studentlist_hash.get("no") %></td>
				<td align="center"><%=studentlist_hash.get("name") %></td>
				<td align="center"><%=studentlist_hash.get("grade") %></td>
				<td align="center"><input type="text" size="6" name="<%=studentlist_hash.get("choose_Id") %>"/></td>
		<%}else{ %>
			    <td align="center"></td>
				<td align="center"></td>
				<td align="center"></td>
				<td align="center"></td>
		<%}} %>
		</tr>
		<%
			}
		%>
      </tbody>
    </table>
    <div id="btn" style="width:100%;align:right;">
		<input type="reset" name="Reset" value="重置"  style="margin-left:58%;"/>&nbsp;&nbsp;&nbsp;&nbsp;
      	<input type="submit" name="Submit" value="提交" />
	</div>
    </form>
</div>
</body>